<?php

require_once '/../shared_feature/DBGlobal.php';
try {
    global $dbaddress;
    global $dbuser;
    global $dbpassword;
    global $dbdatabasename;

//    $pdoconn = new PDO('mysql:host=localhost;dbname=paradigmShift_DEV', 'admin', 'testtest');
    $pdoconn = new PDO('mysql:host='.$dbaddress.';dbname='.$dbdatabasename, $dbuser, $dbpassword);
    $pdoconn -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch (PDOException $e) {
    error_log($e -> getMessage());
    die("Serious database error");
}

?>

